package cn.tedu.jxc.ex;

import cn.tedu.jxc.web.ServiceCode;
import lombok.Data;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@Data
public class ServiceException extends RuntimeException{
    private ServiceCode serviceCode;
    public ServiceException(ServiceCode serviceCode,String message) {
        super(message);
        this.serviceCode=serviceCode;
    }

}
